Skip to content

Preset Data

DataFaker provides support for the following preset data. Below is a Markdown table document generated based on the provided module information, with one table per module for clear structure and easy reference.

Airline Module

Key NameDescription
airline.aircraftTypeAircraft model (e.g., Boeing 747, Airbus A320)
airline.airlineAirline name (e.g., Air China, Delta Airlines)
airline.airplaneAircraft name or registration number
airline.airportAirport name (e.g., Beijing Capital International Airport)
airline.flightNumberFlight number (e.g., CA185, MU510)
airline.recordLocatorRecord locator (e.g., PNR code like ABC123)
airline.seatSeat number (e.g., 12A, 25C)

Animal Module

Key NameDescription
animal.bearBear species (e.g., Grizzly Bear, Polar Bear)
animal.birdBird name (e.g., Sparrow, Eagle)
animal.catCat breed (e.g., Siamese, Persian)
animal.cetaceanCetacean species (e.g., Dolphin, Blue Whale)
animal.cowCow breed (e.g., Holstein, Jersey)
animal.crocodiliaCrocodilian species (e.g., Nile Crocodile)
animal.dogDog breed (e.g., Labrador, Poodle)
animal.fishFish name (e.g., Salmon, Goldfish)
animal.horseHorse breed (e.g., Thoroughbred, Arabian)
animal.insectInsect name (e.g., Butterfly, Ant)
animal.lionLion-related content (e.g., African Lion)
animal.petNamePet name (e.g., Max, Luna)
animal.rabbitRabbit breed (e.g., Holland Lop, Flemish Giant)
animal.rodentRodent species (e.g., Mouse, Hamster)
animal.snakeSnake species (e.g., Python, Rattlesnake)
animal.typeGeneral animal type (e.g., Mammal, Reptile)

Book Module

Key NameDescription
book.authorAuthor name (e.g., J.K. Rowling, Haruki Murakami)
book.formatBook format (e.g., Paperback, E-book, Hardcover)
book.genreBook genre (e.g., Science Fiction, Mystery, Romance)
book.publisherPublisher name (e.g., Penguin Random House, HarperCollins)
book.seriesBook series name (e.g., "Harry Potter", "The Lord of the Rings")
book.titleBook title (e.g., "1984", "Pride and Prejudice")

Color Module

Key NameDescription
color.cmykCMYK color value (e.g., 0, 80, 80, 20)
color.colorByCSSColorSpaceGenerate color by CSS color space (e.g., RGB, HSL)
color.cssSupportedFunctionCSS-supported color functions (e.g., hsl(), rgb(), hwb())
color.cssSupportedSpaceCSS-supported color spaces (e.g., sRGB, display-p3)
color.hslHSL color value (e.g., hsl(240, 100%, 50%))
color.humanHuman-readable color name (e.g., "Red", "Sky Blue")
color.hwbHWB color value (e.g., hwb(240 0% 0%))
color.labLab color value (e.g., lab(50, 20, -30))
color.lchLCH color value (e.g., lch(50, 40, 270))
color.rgbRGB color value (e.g., rgb(255, 0, 0), #FF0000)
color.spaceColor space name (e.g., RGB, CMYK, Lab)

Commerce Module

Key NameDescription
commerce.departmentStore department name (e.g., "Electronics", "Clothing")
commerce.isbnISBN book number (e.g., 978-0306406157)
commerce.priceProduct price (e.g., $29.99, ¥199)
commerce.productProduct name (e.g., "Laptop", "Wireless Headphones")
commerce.productAdjectiveProduct adjective (e.g., "Durable", "Sleek")
commerce.productDescriptionProduct description (e.g., "Lightweight laptop with 16GB RAM")
commerce.productMaterialProduct material (e.g., "Aluminum", "Cotton")
commerce.productNameComplete product name (usually "Adjective + Material + Product", e.g., "Sleek Aluminum Laptop")

Company Module

Key NameDescription
company.buzzAdjectiveBusiness buzzword adjective (e.g., "Innovative", "Agile")
company.buzzNounBusiness buzzword noun (e.g., "Solution", "Synergy")
company.buzzPhraseComplete business buzzphrase (e.g., "Leverage innovative synergies")
company.buzzVerbBusiness buzzword verb (e.g., "Optimize", "Streamline")
company.catchPhraseCompany catchphrase (e.g., "Think Different", "Just Do It")
company.catchPhraseAdjectiveAdjective in catchphrase (e.g., "Different" in "Think Different")
company.catchPhraseDescriptorDescriptor in catchphrase (e.g., "Just" in "Just Do It")
company.catchPhraseNounNoun in catchphrase (e.g., "Ideas" in "Inspire Great Ideas")
company.nameCompany name (e.g., "TechNova Inc.", "GlobalSoft Solutions")

Database Module

Key NameDescription
database.collationDatabase collation (e.g., "utf8mb4_general_ci", "SQL_Latin1_General_CP1_CI_AS")
database.columnDatabase column name (e.g., "user_id", "order_date")
database.engineDatabase engine (e.g., InnoDB, MyISAM, MongoDB WiredTiger)
database.mongodbObjectIdMongoDB ObjectId (e.g., 60d21b4667d0d8992e610c85)
database.typeDatabase type (e.g., Relational, NoSQL, Graph)

DataType Module

Key NameDescription
datatype.booleanBoolean value (true/false)

Date Module

Key NameDescription
date.anytimeRandom time (any timestamp)
date.betweenTime between two dates (e.g., between 2023-01-01 and 2023-12-31)
date.betweensMultiple date ranges (e.g., [["2023-01-01", "2023-03-31"], ["2023-07-01", "2023-09-30"]])
date.birthdateBirthdate (usually within a reasonable age range, e.g., 1980-2005)
date.futureFuture date (e.g., 2024-05-15, relative to current date)
date.monthMonth name (e.g., "January", "December", "七月")
date.pastPast date (e.g., 2022-11-05, relative to current date)
date.recentRecent date (e.g., within the last 30 days)
date.soonUpcoming date (e.g., within the next 7 days)
date.timeZoneTime zone (e.g., "Asia/Shanghai", "America/New_York")
date.weekdayWeekday name (e.g., "Monday", "Sunday", "星期三")

Finance Module

Key NameDescription
finance.accountNameAccount name (e.g., "Personal Savings", "Corporate Checking")
finance.accountNumberAccount number (e.g., 1234-5678-9012-3456)
finance.amountMonetary amount (e.g., 1500.50, 25000)
finance.bicBank Identifier Code (BIC/SWIFT, e.g., BKCHCNBJ110)
finance.bitcoinAddressBitcoin address (e.g., 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa)
finance.creditCardCVVCredit card CVV code (e.g., 123, 456)
finance.creditCardIssuerCredit card issuer (e.g., Visa, Mastercard, China UnionPay)
finance.creditCardNumberCredit card number (e.g., 4111-1111-1111-1111, 5555-5555-5555-4444)
finance.currencyCurrency name with symbol (e.g., "US Dollar ($)", "Euro (€)")
finance.currencyCodeCurrency code (e.g., USD, EUR, CNY)
finance.currencyNameCurrency name (e.g., "US Dollar", "Euro", "Chinese Yuan")
finance.currencyNumericCodeCurrency numeric code (e.g., 840 for USD, 978 for EUR)
finance.currencySymbolCurrency symbol (e.g., $, €, ¥)
finance.ethereumAddressEthereum address (e.g., 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D)
finance.ibanInternational Bank Account Number (IBAN, e.g., DE89370400440532013000)
finance.litecoinAddressLitecoin address (e.g., LhY3iYy8QKj4j1c7Uu9q5GzRv2t6X7w8x9)
finance.pinBank card PIN code (e.g., 1234, 5678)
finance.routingNumberBank routing number (e.g., 121000358)
finance.transactionDescriptionTransaction description (e.g., "Grocery store purchase", "Online shopping refund")
finance.transactionTypeTransaction type (e.g., "Deposit", "Withdrawal", "Transfer")

Food Module

Key NameDescription
food.adjectiveFood adjective (e.g., "Crispy", "Savory")
food.descriptionFood description (e.g., "Golden-brown fried chicken with spicy sauce")
food.dishDish name (e.g., "Beef Stir-Fry", "Margherita Pizza")
food.ethnicCategoryEthnic cuisine category (e.g., "Sichuan Cuisine", "Italian Cuisine", "Japanese Sushi")
food.fruitFruit name (e.g., "Apple", "Mango", "Blueberry")
food.ingredientIngredient name (e.g., "Garlic", "Olive Oil", "Chicken Breast")
food.meatMeat type (e.g., "Beef", "Pork", "Lamb")
food.spiceSpice name (e.g., "Cumin", "Paprika", "Ginger")
food.vegetableVegetable name (e.g., "Tomato", "Broccoli", "Carrot")

Git Module

Key NameDescription
git.branchGit branch name (e.g., "main", "feature/login", "bugfix/payment")
git.commitDateCommit date (e.g., "2023-10-05T14:30:00Z")
git.commitEntryComplete commit log entry (includes SHA, author, date, and message)
git.commitMessageCommit message (e.g., "Fix login form validation", "Add user profile page")
git.commitShaCommit SHA hash (e.g., a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0)

Hacker Module

Key NameDescription
hacker.abbreviationHacker term abbreviation (e.g., "API", "SQL", "HTTP")
hacker.adjectiveHacker-style adjective (e.g., "Encrypted", "Rooted", "Decentralized")
hacker.ingverbVerb ending in -ing (hacker context, e.g., "Hacking", "Coding", "Debugging")
hacker.nounHacker noun (e.g., "Firewall", "Server", "Algorithm")
hacker.phraseHacker-style phrase (e.g., "Bypass the firewall", "Optimize the backend API")
hacker.verbHacker verb (e.g., "Crack", "Decrypt", "Deploy")

Helpers Module

Key NameDescription
helpers.arrayElementRandomly select one element from an array
helpers.arrayElementsSelect multiple elements from an array
helpers.enumValueEnum value (randomly select from an enum)
helpers.fakeGenerate fake data (wrap other fake data methods)
helpers.fromRegExpGenerate string matching a regular expression (e.g., /[A-Z]{3}\d{3}/ → "ABC123")
helpers.maybeReturn a value with a certain probability (e.g., 50% chance to return "value", 50% to return null)
helpers.multipleGenerate multiple values (e.g., 3 random names)
helpers.mustacheRender Mustache templates (e.g., "Hello " → "Hello Alice")
helpers.objectEntryObject entry (key-value pair, e.g., ["name", "Alice"])
helpers.objectKeyObject key (randomly select a key from an object)
helpers.objectValueObject value (randomly select a value from an object)
helpers.rangeToNumberConvert a range to a number (e.g., "1-10" → 5, [1, 10] → 8)
helpers.replaceCreditCardSymbolsReplace credit card symbol placeholders (e.g., "XXXX-XXXX-XXXX-" → "XXXX-XXXX-XXXX-1